Car.prototype.name = 'su7'
Car.prototype.length = '5000'
Car.prototype.height = '1400'

function Car(color, owner) {
  this.color = color
  this.owner = owner
}

let car1 = new Car('red', '阿炜')

car1.run = '20000'
console.log(Car.prototype.run);
console.log(Car.prototype);


// delete car1.name
// console.log(car1.name);   //su7

// delete car1.prototype.name  //Cannot convert undefined or null to object
// console.log(Car.prototype);

// car1.name = '大奔'
// delete car1.name
// console.log(car1.name);  //su7
// delete Car.prototype.name
// console.log(Car.prototype)   //{ length: '5000', height: '1400' }


let car2 = new Car('green', '小朱')

// console.log(car2);




// console.log(car1.name);    //su7
// console.log(car1.length);    //5000
// console.log(car1.height);    //1400


